#include <stdio.h>
int main()
{
	float sum=0,a;
	int f=1;
	for (int i = 1; i <= 100; i++)
	{
		a=1.0*f / i;
		sum += a;
		f = -f;
	}
	printf("%f", sum);
	return 0;
}